package com.hzhk.happyrent.network;

import android.util.Log;

import com.tamic.novate.callback.ResponseCallback;

import okhttp3.Call;
import okhttp3.ResponseBody;

public abstract class RxStringCallback extends ResponseCallback<String, ResponseBody> {

    @Override public String onHandleResponse(ResponseBody response) throws Exception {
        String  responseString =new String(response.bytes());
        Log.d("Novate", responseString);
        return responseString;
    }
    @Override
    public void onNext(Object tag, Call call, String response) {
      onNext(tag, response);
    }
    public abstract void onNext(Object tag, String response);
}